include_directories(../include)
include_directories(include)
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE "Release")
endif()
find_library(muduo_net libmuduo_net.a
        HINTS ../lib/build/lib)
#set(muduo_net ../lib/lib/libmuduo_net.a)
find_library(muduo_base libmuduo_base.a
        HINTS ../lib/build/lib)
set(http_src main.cpp
            http_conn.cpp
        http_decoder.cpp http_server.cpp http_response.cpp)
add_executable(http ${http_src})
#必须按照以下的顺序link
target_link_libraries(http ${muduo_net})
target_link_libraries(http ${muduo_base})
target_link_libraries(http pthread rt)
#aux_source_directory(assert ASSERT)

file(GLOB ASSERT assert/*)
message(STATUS "ASSERT=${ASSERT}")
file(COPY ${ASSERT} DESTINATION assert)